package com.zuo.mapper;

import com.zuo.entity.Facekey;
import com.zuo.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 白白旧维
 * @Date 2022/3/1 17:06
 */
public interface UserMapper {

    User login(String username,String password);

    User getUserByUsername(String username);

    List<User> listUser();

    List<User> searchUser(@Param("username") String username,@Param("status") int status);

    User getOne(int id);

    int updateUser(User user);

    int removeUser(int id);

    int addUser(User user);

    Facekey getFaceKey();

    int updateFaceUrlByName(String faceUrl,String facePath,String username);

    int updatePassword(String username,String oldPassword,String newPassword);

}
